
<div id="products-index">

    <div class="title">
        <a href="__APP__/Products/add/cid/<{$Think.get.cid}>" class="add">添加产品</a>
        <neq name="isshow" value="no">
            <a class="delete" href="javascript:;">删除</a><a class="select" href="javascript:;">全选/反选</a>
        </neq>
    </div>

    <eq name="nobody" value="no">
            <div class="content">
                <div id="nodata"><div>暂无产品分类</div></div>
            </div>
            <div class="footer">
                暂无数据
            </div>
        <else/>
            <div class="content">

                <div class="search">
                    <form action="__APP__/Products/index/cid/<{$Think.get.cid}>" method="post" class="select">

                        关键字 <input type="text" name="key" /> 按
                        <select name="search">
                            <option value="1">ID</option>
                            <option value="2">产品名</option>
                        </select>
                        <input type="submit" value="搜索" />
                    </form>
                </div>
                <form action="__APP__/Products/del/cid/<{$Think.get.cid}>" method="post" name="delete" class="delete">
                    <table>
                        <tr>
                            <th>ID</th><th>产品名称</th><th>别名</th><th>发布</th><th>排序</th><th>创建时间</th><th>操作</th>
                        </tr>
                        <volist name="list" id="vo">
                                <tr>
                                    <td><{$vo['id']}></td>
                                    <td><a href="__APP__/Products/edit/cid/<{$Think.get.cid}>/id/<{$vo['id']}>"><{$vo['name']}></a></td>
                                    <td><{$vo['alias']}></td>

                                    <if condition="$vo['published']" vlaue="1">
                                        <td>是</td>
                                        <else/>
                                        <td>否</td>
                                    </if>

                                    <td><{$vo['sort']}></td>
                                    <td><{$vo['created']|date="Y-m-d H:i:s",###}></td>
                                    <td><input type="checkbox" name="del[]" value="<{$vo['id']}>" /></td>
                                </tr>
                        </volist>
                    </table>
                </form>

            </div>
            <div class="footer">
                <{$show|default="暂无数据"}>
            </div>
    </eq>

</div>
<script type='text/javascript' src='../Public/js/products_index.js'></script>